(function( $ ){

    var methods = {
		init : function(options) {
			$(this).focus(function(){input_focus($(this))}); 
			$(this).blur(function(){input_blur($(this))});
			$(this).blur();
		}
	};
    
    $.fn.input_example = function(method){
    	// Method calling logic
        if ( methods[method] ) {
          return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
        } else if ( typeof method === 'object' || ! method ) {
          return methods.init.apply( this, arguments );
        } else {
          $.error( 'Method ' +  method + ' does not exist on disable' );
        }
    };
})( jQuery );

function input_focus(input){
    if (input.realVal() == input.attr('title')){
    	input.removeClass("example_text");
    	input.val("");
    }
}

function input_blur(input){
    if (input.realVal() == "")
    {
    	input.addClass("example_text");
    	input.val(input.attr('title'));
    }
}